dm: core: Add DM_FLAG_OS_PREPARE flag
authorStefan Roese <[email protected]>
Mon, 24 Apr 2017 07:48:02 +0000 (09:48 +0200)
committerBin Meng <[email protected]>
Wed, 17 May 2017 09:13:06 +0000 (17:13 +0800)
commit426f99fa98c3725fe0ca1eb8438d1215a2c6bd6b
tree6efd5bcaf65a045220083f6c6ff96fb79f10adaa
parente98856fcff5adc64689c3d5597b0a36d867eec8f
dm: core: Add DM_FLAG_OS_PREPARE flag

This new flag can be added to DM device drivers, which need to do some
final configuration before U-Boot exits and the OS (e.g. Linux) is
started. The remove functions of those drivers will get called at
this stage to do these last-stage configuration steps.

Signed-off-by: Stefan Roese <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Cc: Bin Meng <[email protected]>
drivers/core/device-remove.c
include/dm/device.h